package com.gyg.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <des>
 *
 * <des>
 *
 * @create Date 2021-10-27
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Remark implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long userId;

    private Long blogId;

    @NotBlank(message = "评论不能为空")
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime created;

    private Integer status;  // 0 未审核或者审核失败   1 审核通过
}
